<!-- $Id: listTag.html 39 2011-02-19 17:01:51Z nicholasinlove1986@gmail.com $ -->
<include file="Public:pageheader"/>
<load href="__PUBLIC__/Js/jquery.tableSort.js" />
<script type="text/javascript">
function sortBy(order,sort){
	location.href = "?order="+order+"&sort="+sort;
}
</script>
<form method="post" action="" name="listForm">
  <div class="list-div" id="listDiv">
    <table cellpadding="3" cellspacing="1" id="tag_table">
      <tbody>
        <tr>
          <th><a href="javascript:void(0)" onclick="javascript:sortBy('tag_hit','<if condition="$sort eq asc">desc<else/>asc</if>');" title="{$Think.lang.sort}">{$Think.lang.tag_hits}</a>
            <if condition="$sort eq asc"><img src="__PUBLIC__/Images/sort_asc.gif"/><else/><img src="__PUBLIC__/Images/sort_desc.gif"/></if></th>
          <th><a href="javascript:$('#tag_table').sortTable({onCol: 2, keepRelationships: true})" title="{$Think.lang.sort}">{$Think.lang.tag_name}</a><img src="__PUBLIC__/Images/sort_asc.gif"/></th>
          <th>{$Think.lang.tag_url}</th>
		  <th><a href="javascript:$('#tag_table').sortTable({onCol: 4, keepRelationships: true, sortType: 'numeric'})" title="{$Think.lang.sort}">{$Think.lang.tag_posts_nums}</a><img src="__PUBLIC__/Images/sort_asc.gif"/></th>        
          <th>{$Think.lang.tag_addtime}</th>
		  <th>{$Think.lang.handler}</th>
        </tr>
        <volist name="list" id="vo">
          <tr>
			<td style="background-color: rgb(255, 255, 255);" align="center" width="10%"><span>{$vo.tag_hit}</span></td>
            <td style="background-color: rgb(255, 255, 255);" align="center" width="15%" class="first-cell">{$vo.tag_name}</td>
            <td style="background-color: rgb(255, 255, 255);" align="left" width="32%"><span><a href="{&blog_domain}tag/{$vo.tag_url}/" target="_blank">{$vo.tag_url}</a></span></td>
			<td style="background-color: rgb(255, 255, 255);" align="center" width="10%">{$vo.posts_num}</td>
            <td style="background-color: rgb(255, 255, 255);" align="center" width="18%"><span>{$vo.tag_addtime|date='Y-m-d H:i:s',###}</span></td>   
			<td style="background-color: rgb(255, 255, 255);" align="center">
	<a href="__APP__/Tag/editTag/id/{$vo.tag_id}" title="{$Think.lang.edit}"><img src="__PUBLIC__/Images/icon_edit.gif" border="0" width="16" height="16"></a>&nbsp;&nbsp;
    <a href="__APP__/Tag/dropTag/id/{$vo.tag_id}" title="{$Think.lang.delete}" onclick="return confirm('{$Think.lang.tag_delete_confirm}');" ><img src="__PUBLIC__/Images/icon_drop.gif" border="0" width="16" height="16"></a></td>    
          </tr>
        </volist>
      </tbody>
    </table>
  </div>
</form>
<include file="Public:pagefooter"/> 